package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.Vo.StatusList;
import com.indexingsystem.boss.entity.DhTodayStorageInfos;

/**
 * 单日入库明细serive接口.
 * 
 * @author Administrator
 * 
 */
public interface IdhTodayStorageInfosService {
	
	/**
	 * 产品审核后批量更新入库明细状态.
	 * @param list
	 * @return
	 */
	int updateTodayStorageInfosByResIdList(List<StatusList> list) throws Exception;
	
	/**
	 * 批量删除入库明细.
	 * @param list
	 * @return
	 */
	int deleteResourcesByIdBatch(List<String> list) throws Exception;
	
	
	/**
	 * 通过主键id删除当日入库明细.
	 * @param storageId
	 * @return
	 */
	int deleteTodayStorageInfoById(String storageId);
	
	
	/**
	 * 通过入库资源id获取入库记录.
	 * @param resId
	 * @return
	 */
	List<DhTodayStorageInfos> getDhTodayStorageInfosByResId(String resId);
	
    /**
     * 获取入库批次号.
     * @return
     */
    List<Integer> getTodayStorageInfoBatchNumList();
    
    /**
     * 添加流水表
     * @param dhTodayStorageInfos
     * @return
     */
    int insert(DhTodayStorageInfos dhTodayStorageInfos);
    
    Integer countBatch();
    
    /**
     * 根据userId获取入库记录，校验入库是否已存在，如果存在不允许删除。
     * @param userId
     * @return
     */
    int getTodayStorageInfosByUserId(String userId);

	List<DhTodayStorageInfos> getDhTodayStorageInfosByResIdAndForMat(String resId);
}